package com.ml.mall.bean.req.company;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

/**
 *   @description    :和新增类相比，没有registartionNo和interestedIndustryArr字段
 *   @author         :zxm
 *   @date           :2021/5/14
 *   @version        :1.0
**/
@ApiModel(value = "公司修改model")
@Data
public class CompanyEditDto {
    @ApiModelProperty(value = "公司主键id")
    @NotNull(message = "id cannot be null")
    private Long id;

    @ApiModelProperty(value = "公司名称")
    @NotBlank(message = "公司名称不能为空")
    private String companyName;

    @ApiModelProperty(value = "注册码")
//    @NotBlank(message = "注册码不能为空")
    private String registartionNo;

    @ApiModelProperty(value = "图片地址")
//    @NotBlank(message = "公司logo不能为空")
    private String logoUrl;

    @ApiModelProperty(value = "证书地址：或者身份证图片URL")
//    @NotBlank(message = "证书图片不能为空")
    private String ssmUrl;

    @ApiModelProperty(value = "产业id")
//    @NotNull(message = "产业id不可为空")
    private Long industryId;

    @ApiModelProperty(value = "国家id")
    private Long countryId;

    @ApiModelProperty(value = "感兴趣的产业类型")
    private CompanyIntrIndustryDto interestIndustryObj;

    @ApiModelProperty(value = "电话")
    @NotBlank(message = "电话不能为空")
    private String phoneNo;

    @ApiModelProperty(value = "订阅类型：1免费；2收费",example = "1")
//    @NotNull(message = "订阅类型不能为空")
    private Integer subType;

    @ApiModelProperty(value = "0：系统配送 1：商家自配送",example = "1")
    private Integer supplierDeliveryType;

    @ApiModelProperty(value = "星级",example = "1")
    private Integer starsNum;

    @ApiModelProperty(value = "公司业务描述")
//    @NotBlank(message = "公司业务描述不能为空")
    private String businessBackground;

    @ApiModelProperty(value = "洲属名")
    private String statesName;

    @ApiModelProperty(value = "业务类型")
    private String typesBusiness;   //公司类型

    @ApiModelProperty(value = "账单地址")
    private CompanyAddrEditDto billAddr;

    @ApiModelProperty(value = "购物地址")
    private CompanyAddrEditDto shopAddr;

    @ApiModelProperty(value = "银行卡详情")
    private CompanyBankEditDto bankDetails;

    @ApiModelProperty(value = "国家州属")
    private CompanyShippingEditDto companyShipping;

    @ApiModelProperty(value = "物流信息")
    private CompanyLogisticsInfoDto logisticsInfo;

    @ApiModelProperty(value = "状态：0待定；1：正常；2：禁用；3拒绝")
//    @Pattern(regexp = "0|1|2|3",message = "状态不正确")
//    @NotBlank(message = "state 不能为空")
    private Integer state;

    @ApiModelProperty(value = "电子邮箱")
    private String emailAddress;

    @ApiModelProperty(value = "公司规模")
    private Integer companyLevel;

    @ApiModelProperty(value = "公司备注")
    private String remark;

    @ApiModelProperty(value = "拒绝原因")
    private String refuseReason;

    @ApiModelProperty(value = "马来公司注册码")
    private String syarikatCode;
}
